package com.groupnections.client.Entities;

import java.util.List;

import com.google.gwt.user.client.rpc.AsyncCallback;
import com.groupnections.shared.Entity;

/**
 * The async counterpart of <code>GreetingService</code>.
 */
public interface EntitiesDatabaseServerCallsAsync {

	void listEntities(AsyncCallback<List<Entity>> callback);

	void getEntity(String entityID, AsyncCallback<Entity> callback);

	void saveEntity(Entity entity, AsyncCallback<Void> callback);

	void connectEntity(Entity entity, String entityID,
			AsyncCallback<Void> callback);

}
